<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>50bus-个人中心</title>
    <meta name="keywords" content="50bus" />
    <meta name="copyright" content="50bus.com" />
    <!-- <meta http-equiv="mobile-agent" content="http://www.50bus.com/" />
    <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" /> -->
    <link rel="icon" href="/resources/img/favicon.ico" type="image/x-icon" />
    
    <link rel="stylesheet" type="text/css" href="/resources/css/base.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/resources/css/globe.css" media="all" />
    <link rel="stylesheet" type="text/css" href="/resources/css/module-userhome.css" media="all" />
    <script type="text/javascript" src="/resources/js/jquery-1.9.1.min.js"></script>
</head>

<body>
    <div class="header_wrap">
        <div class="header clearfix">
            <div class="fm980 fl clearfix">
                <a href="/index.html" class="logo fl"></a>
                <ul class="nav_box fl">
                    <li><a href="/creative_list.html">形象创意</a></li>
                    <li><a href="/script_list.html">剧本创作</a></li>
                    <li><a href="/render_index.html">动画渲染</a></li>
                    <li><a href="/creative_helper.html">创意助手</a></li>
                </ul>
                <div class="about_box fr">
                    <a href="/about.html">关于我们</a>
                    <a href="/user/user_work.html" class="cur">${user.comp}个人空间</a>
                    <a href="/logout.html">退出</a>
                </div>
            </div>
        </div>

    </div>

    <div class="body_wrap">
        <div class="handle_bar">
            <div class="fm980"><p class="fz16 pt5"></p></div>
        </div>
        <div class="user_home_box fm980 clearfix">
            <div class="nav_left fl">
                <a class="icon_edit" href="/user/user_info.html"></a>
                <b class="corner"></b>
                <div class="user_info clearfix">
                    <#if user?? && user.header_img?? && user.header_img != ''>
                    	<span class="user_pic fl"><img src="${user.header_img}" /></span>
                    <#else>
                    	<span class="user_pic fl"><img src="/resources/img/user_def_70.png" /></span>
                    </#if>
                    <p>
                        <span class="user_name">${user.comp}</span>
                        <span style="display:none;" class="like_box_14"><b class="fav_heart"></b> 56422</span>
                    </p>
                </div>
                <div class="nav_list">
                    <ul>
                         <li><a href="/user/user_work.html" >我的作品</a></li>
                        <li><a href="/user/user_trade.html">我的交易</a></li>
                        <li><a href="/user/user_account.html" class="cur">我的账户</a></li>
                        <li><a href="/user/user_info.html" >个人信息</a></li>
                    </ul>
                </div>
            </div>
            <!-- 我的账户 > 账户充值 -->
            <div class="home_con fl">
                <div class="tab_box sep_line">
                    <a href="/user/user_account.html">提现</a>
                    <a href="/user/user_account.html"  class="cur">充值</a>
                    <a href="/user/user_cash.html">提现记录</a>
                </div>
                <div class="account_info account_pay sep_line">
                    <ul>
                        <li class="clearfix">
                            <span class="t">支付宝帐号：</span>
                            <p><input class="input_txt" name="account" type="text" /></p>
                        </li>
                        <li class="clearfix">
                            <span class="t">支付宝密码：</span>
                            <p><input class="input_txt" name="pwd" type="text" /></p>
                        </li>
                        <li class="clearfix">
                            <span class="t">充值金额：</span>
                            <p><input class="input_txt" name="money" type="text" /> 元</p>
                        </li>
                        <li class="mt30 clearfix">
                            <p><a href="javascript:;" id="cashBtn" class="btn_com_purple">提现</a></p>
                        </li>
                    </ul>
                </div>

            </div>

            <!-- 我的账户 -->
            <!-- <div class="home_con fl">
                <div class="account_info sep_line">
                    <b class="black_line"></b>
                    <ul>
                        <li class="clearfix">
                            <span class="t">账户余额：</span>
                            <p><span class="num">0</span> 元</p>
                        </li>
                        <li class="clearfix">
                            <span class="t">账户充值：</span>
                            <p><a href="" class="u_line purple_txt">支付宝</a></p>
                        </li>
                    </ul>
                </div>
                <div class="account_info sep_line">
                    <b class="black_line"></b>
                    <ul>
                        <li class="clearfix">
                            <span class="t">账户交易额：</span>
                            <p><span class="num">5426.23</span> 元</p>
                        </li>
                        <li class="clearfix">
                            <p>累计收入：200元 累计支出：48.561元</p>
                        </li>
                    </ul>
                </div>
                <div class="account_info sep_line">
                    <b class="black_line"></b>
                    <ul class="pt20">
                        <li class="clearfix">
                            <span class="t">交易数量：</span>
                            <p>25件（形象作品：5件；剧本：15件；渲染：5件）</p>
                        </li>
                    </ul>
                </div>

            </div> -->

        </div>

    </div>

    <div class="footer">
        <div class="fm980 clearfix">
            <div class="foot_link foot_link1 fl">
                <a href="/creative_list.html">形象创意</a>
                <a href="/script_list.html">剧本创作</a>
                <a href="/render_index.html">动画渲染</a>
                <a href="/creative_helper.html" >创意助手</a>
            </div>
            <div class="foot_link foot_link2 fl">
                <a href="http://zjusp.zju.edu.cn/">浙大科技园</a>
                <a href="http://www.zju.edu.cn/">浙江大学</a>
                <a href="/about.html" >关于我们</a>
            </div>
            <div class="copy_box fr">
                <img class="mb5" src="/resources/img/foot_text.png" />
                <p>&copy; 2013-2016 All right reserved</p>
                <p><a href="">服务条款</a><a href="">隐私条款</a><a href="">法律条款</a></p>
                <p style="display:none;"><a href="" class="share_icon share_sina"></a><a href="" class="share_icon share_wx"></a></p>
            </div>
        </div>
    </div>
<script type="text/javascript">
$("#cashBtn").click(function(){
	var account = $.trim($("input[name=account]").val());
	var money = $.trim($("input[name=money]").val());
	if(account == ""){
		alert("请输入支付宝帐号");
		return false;
	}
	if(money == ""){
		alert("请输入提现金额");
		return false;
	}
	$.post("/user/user_balance_check.json",{"money":money},function(data){
		if(data.statusCode == 200){
			$.post("/user/user_cash_post.json",{"account":account,"money":money},function(data){
				if(data.statusCode == 200){
					location.href = "/user/user_cash.html";
				}else{
					alert(data.message);
				}
			});
		}else{
			alert(data.message);
			return false;
		}
	});
	
});
</script>
<script type="text/javascript" src="/resources/js/page-index.js"></script>
<script type="text/javascript">
	<#if uid??&&uid!="">
    	$.post("/common/getUserName.json",{"uid":${uid}},function(data){
    		if(data.name){
    			$('a[href="/user/user_work.html"]').html(data.name+"个人空间");
    		}
    	});
	 </#if>
</script>
</body>

</html>